package cn.tedu.spring.security.security;

import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.io.Serializable;
import java.util.Collection;

public class AdminDetails extends User {

    @Getter
    private Long id;
    public AdminDetails(Long id,String username, String password, boolean enable, Collection<? extends GrantedAuthority> authorities){
        super(username,password,enable,true,true,true,authorities);
        this.id = id;
    }
}
